import {
    Entity,
    Column,
    PrimaryGeneratedColumn,
    OneToOne,
    OneToMany,
  } from 'typeorm';
import { WorkSheet } from './worksheet.entity';
  @Entity()
  export class WorkBook {
    @PrimaryGeneratedColumn()
    id: number;
  
    @Column()
    name: string;

    @OneToMany((type) => WorkSheet, (WorkSheet) => WorkSheet.sheet_index)
    workSheet: WorkSheet[];
  }
  